package cn.JHai.rbac.mapper;

import cn.JHai.rbac.domain.Permission;
import cn.JHai.rbac.query.QueryObject;
import java.util.List;
import java.util.Set;

public interface PermissionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Permission record);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    int updateByPrimaryKey(Permission record);

    Long selectForCount(QueryObject queryObject);

    List<Permission> pageSelect(QueryObject queryObject);

    List<Permission> selectPermissionsByRoleId(Long id);


    Set<String> selectExpressionByEmployId(Long id);
}